{
    var a = 1 //var没有局部作用域
}

console.log(a)


function f(){
    {
        var m = 100
    }
    console.log(m)
}
function f2(){
    
        var x = 1000  
        console.log(x)  
  
}


f()
f2()



